xiaoming = {"name" : "小明",
            "age" : 18 ,
            "gender" : True}

# 变量k是每次循环中，获取到的键值对的key
for k in xiaoming:
    print("%s -%s" %(k,xiaoming[k]))